package com.example.dahua.templateMethod;

/**
 * @author: dangwen
 * @createDate: 2021/7/3
 */
public class TravelPlan1 extends TravelTemplate{
    @Override
    public void byCar() {
        System.out.println("byCar");
    }

    @Override
    public void byPlane() {
        System.out.println("byPlane");
    }

    @Override
    public void byBoat() {
        System.out.println("byBoat");
    }

    @Override
    public void byTrain() {

    }

    @Override
    public boolean tooFar() {
        return false;
    }
}
